package com.etouch.security.pojo.dto;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.etouch.security.pojo.entity.SysPermission;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.security.Permission;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author chenyunchang
 * @since 2020-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SysRoleDTO对象", description = "SysRoleDTO对象")
public class SysRoleDTO extends Model<SysRoleDTO> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "角色编码")
    private String roleCode;

    @ApiModelProperty(value = "角色名")
    private String roleName;

    @ApiModelProperty(value = "描述")
    private String roleDesc;

    @ApiModelProperty(value = "角色的权限")
    private List<SysPermission> permissionList;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
